//定义接口Animal
interface Animal12 {

    String NAME = "牧羊犬";
    public void shout();
    public void info();
}
abstract class Action {
    public abstract void eat();
}

class Dog5 extends Action implements Animal12{
    public void eat(){

        System.out.println("喜欢吃骨头");
    }
    public void shout() {
        System.out.println("汪汪······");
    }

    public void info(){

        System.out.println("名称：“+NAME");
    }
}
public class example12 {
    public static void main(String[] args) {
        Dog5 dog = new Dog5();
        dog.info();
        dog.shout();
        dog.eat();
    }
}
